package com.zhouz.admin.app.db.exception;
import com.zhouz.admin.app.db.domain.OptLog;
import com.zhouz.admin.app.db.vo.LoginUserVo;
import lombok.Data;

/**
 * 说明：
 *
 * @auther 张鹏
 * @create
 */
@Data
public class MyRunTimeException extends RuntimeException {
    private String message ;
    private String requestJson;
    private String businessId;
    private String apiName;
    private LoginUserVo userVo;
    private OptLog logs;
    private Object[] args;
    //无参构造方法
    public MyRunTimeException(){

        super();
    }
    public MyRunTimeException(OptLog logs, Object[] args, String message,LoginUserVo userVo){
        super(message);
        this.logs = logs;
        this.args = args;
        this.message = message;
        this.userVo = userVo;
    }
    public MyRunTimeException(String requestJson, String businessId, String apiName, String message){
        super(message);
        this.requestJson = requestJson;
        this.businessId = businessId;
        this.apiName = apiName;
        this.message = message;

    }

    //有参的构造方法
    public MyRunTimeException(String message){
        super(message);
    }
    // 用指定的详细信息和原因构造一个新的异常
    public MyRunTimeException(String message, Throwable cause){
        super(message,cause);
    }
    //用指定原因构造一个新的异常
    public MyRunTimeException(Throwable cause) {
        super(cause);
    }
}
